require(['./config'], function() {
	require(['jquery', 'template', 'loadHF'], function($, template) {
		class spList {
			constructor() {
				this.initList()
			}
			initList() {
				const url = "https://www.xiongmaoyouxuan.com/api/tab/2"
				$.getJSON(url, function(a) {
					const b = a.data.items.list
					console.log(a.data.items.list)
					const list = {
						products: b
					}
					const html = template('sp-list', list)
					// console.log(html)
					$(".goods").html(html)
				})

			}
		}
		new spList()
	})
})
